<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="basePath.jsp"%>
<%@ page import="java.util.*,entity.*" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css"
	href="<%=viewPath%>/css/lib/bootstrap.min.css" />
<link rel="stylesheet" type="text/css"
	href="<%=viewPath%>/css/lib/bootstrap-responsive.min.css" />
<link rel="stylesheet" type="text/css"
	href="<%=viewPath%>/css/app/bootstrap-consistency.css" />
<link rel="stylesheet" type="text/css"
	href="<%=viewPath%>/css/app/submitter.css" />
<title>create a risk</title>
</head>
<body>

	<!-- 风险提交者页面：Risk entry，Possibility，Influence，Submitter,Follower -->
	
	<!-- 风险追踪者页面：description和Follower去掉，把response重命名为description -->

	<%
	User user=(User)session.getAttribute("user");
	out.print(user.getUsername());
	out.print(user.getId());
	
	//追踪者列表，option的value为userId
	@SuppressWarnings("unchecked")
	List<User> tracers=(List<User>)session.getAttribute("tracers");
	for(User tracer:tracers){
		out.print(user.getUsername());
		out.print(user.getId());  //<option value=user.getId()>user.getUsername</option>
	}
	
	//风险追踪者首页，包括所有的风险条目
	@SuppressWarnings("unchecked")
	List<Risk> risks=(List<Risk>)session.getAttribute("risks");
	for(Risk risk:risks){
		out.println(risk.getId());
		out.println(risk.getTitle());
		out.println(risk.getCommitterUsername());  //获得风险的提交者
		out.println(risk.getInfluence().toString());
		out.println(risk.getPossibility().toString());
		out.println(risk.getDescription());
	}
	%>
	
</body>
</html>